package com.haoqi.document.template.base.exception;

import java.util.function.Supplier;

public class UserException extends RuntimeException implements Supplier<UserException> {
    private String name;

    private Integer code;

    private String msg;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public UserException(String name) {
        this.name = name;
    }

    public UserException(String name, String msg) {
        this.name = name;
        this.msg = msg;
    }

    @Override
    public UserException get() {
        return this;
    }
}
